﻿using System.ComponentModel.DataAnnotations;

namespace Best.SmartCms.Dto.Common
{
    /// <summary>
    /// 图片上传结果
    /// </summary>
    public class UploadFileDto
    {
        /// <summary>
        /// 数据库存储Id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 客户端唯一Id，不保存，主要用于前端方便删除，返回id
        /// </summary>
        public string Uid { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long Size { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 上次状态
        /// </summary>
        public string Status{ get; set; }

        /// <summary>
        /// OSS key
        /// </summary>
        public string OssKey { get; set; }

        /// <summary>
        /// 原始图片地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 缩略图Url
        /// </summary>
        public string ThumbUrl { get; set; }
    }
}
